﻿<%@ Page Language="C#" MasterPageFile="~/Globals/GenericMasterPage.master" AutoEventWireup="true"
    CodeFile="LotesOvas.aspx.cs" Inherits="TecnoPezWeb.Modules.Compras.LotesOvas"
    Title="Untitled Page" %>

<%@ Register Assembly="WebUtils" Namespace="WebUtils.Controls" TagPrefix="cc3" %>

<%@ Register Assembly="MsgBox" Namespace="MsgBox" TagPrefix="cc2" %>

<%@ Register Src="../../Controls/TecnoPezCalendar.ascx" TagName="TecnoPezCalendar"
    TagPrefix="uc4" %>

<%@ Register Src="../../Controls/TecnoPezPopUp.ascx" TagName="TecnoPezPopUp" TagPrefix="uc3" %>

<%@ Register Src="../../Controls/TecnopezDataGRIDABMView.ascx" TagName="TecnopezDataGRIDABMView"
    TagPrefix="uc2" %>

<%@ Register Src="../../Controls/TecnoPezUpdateProgress.ascx" TagName="TecnoPezUpdateProgress"
    TagPrefix="uc1" %>

<%@ Register Assembly="Microsoft.Practices.EnterpriseLibrary.Validation.Integration.AspNet"
    Namespace="Microsoft.Practices.EnterpriseLibrary.Validation.Integration.AspNet"
    TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CPHPrincipal" runat="Server">
    <asp:Wizard ID="wzrABM" runat="server" ActiveStepIndex="1" BorderColor="#B5C7DE"
        BorderWidth="0px" DisplaySideBar="False" Font-Names="Verdana" Font-Size="0.8em">
        <StepStyle Font-Size="0.8em" ForeColor="#333333" VerticalAlign="Top" />
        <SideBarStyle BackColor="#507CD1" Font-Size="0.9em" VerticalAlign="Top" />
        <NavigationButtonStyle BackColor="White" BorderColor="#507CD1" BorderStyle="Solid"
            BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#284E98" />
        <WizardSteps>
            <asp:WizardStep ID="wzrBusqueda" runat="server" StepType="Complete" Title="Busqueda">
                <table id="TableData" cellspacing="0" style="width: 100%">
                    <tr>
                        <td class="cabeceraTabla" colspan="3">
                            Buscar Lotes de Ovas</td>
                    </tr>
                    <tr>
                        <td class="columnaLabels" style="width: 200px">
                            <asp:Label ID="lblBuscarCodigo" runat="server" Text="C&#243;digo" Width="200px"></asp:Label>
                        </td>
                        <td class="columnaData" style="width: 210px">
                            <asp:TextBox ID="txtBuscarCodigo" runat="server" Width="200px"></asp:TextBox>
                        </td>
                        <td rowspan="2" valign="top">
                            <asp:Button ID="cmdBuscar" runat="server" BorderStyle="None" CssClass="Boton" Height="23px"
                                Text="Buscar" Width="102px" />
                            <asp:Button ID="cmdNuevo" runat="server" CssClass="Boton" Height="23px" OnClick="cmdNuevo_Click"
                                Text="Nuevo" Width="102px" />
                        </td>
                    </tr>
                    <tr>
                        <td class="columnaLabels" style="width: 200px">
                            <asp:Label ID="lblEstado" runat="server" Text="Estado" Width="200px"></asp:Label>
                        </td>
                        <td class="columnaData" style="width: 210px">
                            <asp:DropDownList ID="ddlBuscarEstado" runat="server">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3" style="height: 170px">
                            <uc2:TecnopezDataGRIDABMView ID="grdLotesOvas" runat="server" />
                        </td>
                    </tr>
                </table>
            </asp:WizardStep>
            <asp:WizardStep ID="wzrEdicion" runat="server" StepType="Complete" Title="Edicion">
                <table cellspacing="0" width="100%">
                    <tr>
                        <td class="cabeceraTabla" colspan="4" style="height: 20px">
                            Datos del Lote de Ovas</td>
                    </tr>
                    <tr>
                        <td class="columnaLabels" style="width: 200px; height: 26px">
                            <asp:Label ID="Label1" runat="server" Text="C&#243;digo" Width="200px"></asp:Label>
                        </td>
                        <td class="columnaData" style="width: 205px; height: 26px">
                            <asp:TextBox ID="txtCodigo" runat="server" Width="200px"></asp:TextBox>
                        </td>
                        <td class="columnaData" style="width: 1px; height: 26px">
                            <asp:RequiredFieldValidator ID="RFVCodigo" runat="server" ControlToValidate="txtCodigo"
                                ErrorMessage="Ingrese un c&#243;digo">*</asp:RequiredFieldValidator>
                        </td>
                        <td rowspan="2" style="width: 6px" valign="top">
                            <asp:Button ID="cmdEditar" runat="server" CausesValidation="False" CssClass="Boton"
                                Height="23px" OnClick="cmdEditar_Click" Text="Editar" Width="102px" />
                            <asp:Button ID="cmdEliminar" runat="server" CausesValidation="False" CssClass="Boton"
                                Height="23px" OnClick="cmdEliminar_Click" Text="Eliminar" Width="102px" />
                        </td>
                    </tr>
                    <tr>
                        <td class="columnaLabels" style="width: 200px">
                            <asp:Label ID="Label2" runat="server" Text="Fecha Ingreso" Width="200px"></asp:Label>
                        </td>
                        <td class="columnaData" style="width: 205px">
                            <cc3:tecnopezcalendar id="TPCFechaIngreso" runat="server" text=""></cc3:tecnopezcalendar>
                        </td>
                        <td class="columnaData" style="width: 1px">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="columnaLabels" style="width: 200px">
                            <asp:Label ID="Label3" runat="server" Text="Cantidad" Width="200px"></asp:Label>
                        </td>
                        <td class="columnaData" style="width: 205px">
                            <asp:TextBox ID="txtCantidad" runat="server" Width="200px"></asp:TextBox>
                        </td>
                        <td class="columnaData" style="width: 1px">
                            <asp:RequiredFieldValidator ID="RFVNombre" runat="server" ControlToValidate="txtCantidad"
                                ErrorMessage="Ingrese una Cantidad">*</asp:RequiredFieldValidator>
                        </td>
                        <td style="width: 6px">
                        </td>
                    </tr>
                    <tr>
                        <td class="columnaLabels" style="width: 200px">
                            <asp:Label ID="lblEspecie" runat="server" Text="Especie" Width="200px"></asp:Label>
                        </td>
                        <td class="columnaData" style="width: 205px" valign="top">
                            <uc3:TecnoPezPopUp ID="TPPEspecie" runat="server" />
                        </td>
                        <td class="columnaData" style="width: 1px" valign="top">
                        </td>
                        <td style="width: 6px" valign="bottom">
                        </td>
                    </tr>
                    <tr>
                        <td class="columnaLabels" style="width: 200px">
                            <asp:Label ID="Label4" runat="server" Text="Proveedor" Width="200px"></asp:Label>
                        </td>
                        <td class="columnaData" style="width: 205px" valign="top">
                            <uc3:TecnoPezPopUp ID="TPPProveedor" runat="server" />
                        </td>
                        <td class="columnaData" style="width: 1px" valign="top">
                        </td>
                        <td style="width: 6px" valign="bottom">
                        </td>
                    </tr>
                    <tr>
                        <td class="columnaLabels" style="width: 200px">
                            <asp:Label ID="Label5" runat="server" Text="Estado" Width="200px"></asp:Label>
                            <asp:Label ID="lblId" runat="server" Text="ID" Visible="False"></asp:Label>
                        </td>
                        <td class="columnaData" style="width: 205px" valign="top">
                            <asp:TextBox ID="txtEstado" runat="server" Width="200px"></asp:TextBox>
                            <asp:TextBox ID="txtId" runat="server" Visible="False"></asp:TextBox>
                            &nbsp;
                        </td>
                        <td class="columnaData" style="width: 1px" valign="top">
                        </td>
                        <td style="width: 6px" valign="bottom">
                            <asp:Button ID="cmdAceptar" runat="server" CssClass="Boton" Height="23px" OnClick="cmdAceptar_Click"
                                Text="Aceptar" Width="102px" />
                            <asp:Button ID="cmdCancelar" runat="server" CausesValidation="False" CssClass="Boton"
                                Height="23px" OnClick="cmdCancelar_Click" Text="Cancelar" Width="102px" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" style="height: 25px" valign="top">
                            <asp:Label ID="_lblError" runat="server" CssClass="errorLabel"></asp:Label>
                            <br />
                            <cc1:PropertyProxyValidator ID="PPVCodigo" runat="server" DisplayMode="List" RulesetName=""></cc1:PropertyProxyValidator>
                            <br />
                            <cc1:PropertyProxyValidator ID="PPVCantidad" runat="server" DisplayMode="List" OnValueConvert="PPVCantidad_ValueConvert"
                                RulesetName=""></cc1:PropertyProxyValidator>
                            <br />
                            <cc1:PropertyProxyValidator ID="PPVEspecie" runat="server" DisplayMode="List" OnValueConvert="PPVEspecie_ValueConvert"
                                RulesetName=""></cc1:PropertyProxyValidator>
                            <br />
                            <cc1:PropertyProxyValidator ID="PPVProveedor" runat="server" DisplayMode="List" OnValueConvert="PPVProveedor_ValueConvert"
                                RulesetName=""></cc1:PropertyProxyValidator>
                        </td>
                        <td colspan="1" style="width: 1px; height: 25px" valign="top">
                        </td>
                        <td style="width: 6px; height: 25px" valign="top">
                        </td>
                    </tr>
                </table>
            </asp:WizardStep>
        </WizardSteps>
        <SideBarButtonStyle BackColor="#507CD1" Font-Names="Verdana" ForeColor="White" />
        <HeaderStyle BackColor="#284E98" BorderColor="#EFF3FB" BorderStyle="Solid" BorderWidth="2px"
            Font-Bold="True" Font-Size="0.9em" ForeColor="White" HorizontalAlign="Center" />
    </asp:Wizard>
    
</asp:Content>
